@echo off
cls
echo Uninstalling Visual Studio templates...
echo.

:: Delete templates
del /Q /F "%programfiles%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC\1033\MvcMembership*.zip">nul

:: Unregister templates
"%programfiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /setup
"%programfiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /installvstemplates
goto installed

:: Done!
:installed
echo Uninstall complete.
echo.
echo.
pause